<?php
require_once(dirname(__FILE__).'/config.php');

if(!$cfg_ml->IsLogin())
	{
		include_once(dirname(__FILE__)."/templets/index-notlogin.htm");
	}
require_once(DEDEINC."/datalistcp.class.php");

if($dopost=='')
{
	if($po=='jd')
	{
    $query = "Select * From `#@__order` where mid='".$cfg_ml->M_ID."' and fx<>'0' order by aid desc";
	}
	else if($po=='zc')
	{
	  $query = "Select * From `#@__order` where mid='".$cfg_ml->M_ID."' and zc>'0' order by aid desc";
	}
	else 
	{
	$query = "Select * From `#@__order` where mid='".$cfg_ml->M_ID."' and fx='0' and zc='0' order by aid desc";	
	}
	
    $dlist = new DataListCP();
	$dlist->pageSize = 20;
	$dlist->SetParameter("ftype",$ftype);
	$dlist->SetTemplate(dirname(__FILE__).'/templets/edit_myorder.htm');
	$dlist->SetSource($query);
	$dlist->Display();
}
/*------------------------
function __Save()
------------------------*/

?>